package org.yefei.homeworkday13;

public class TestDriver {

	public static void main(String[] args) {
		Driver driver = new Driver();
		driver.driveAge = 8;
		driver.driveNum = "20020031223213X";
		driver.name = "小王";

		Car car = new Car();
		car.brand = "劳斯莱斯幻影";
		car.displacement = "7.0T";
		car.oilNum = "10L";
		car.sitNum = 7;

		Bus bus = new Bus();
		bus.name = "103路";

		Van van = new Van();
		van.brand = "江淮";

		driver.drive(car);
		driver.drive(bus);
		driver.drive(van);
	}

}
